home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9094 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: po.CWRU.Edu!mab22
  2. From: mab22@po.CWRU.Edu (Michael A. Balfour)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Byte Orders and Char Sets?
  5. Date: 6 Mar 1996 23:04:30 GMT
  6. Organization: Case Western Reserve University, Cleveland, OH (USA)
  7. Message-ID: <4hl5lu$jk8@madeline.INS.CWRU.Edu>
  8. References: <4hkqm1$5dm@madeline.INS.CWRU.Edu>
  9. Reply-To: mab22@po.CWRU.Edu (Michael A. Balfour)
  10. NNTP-Posting-Host: kanga.ins.cwru.edu
  11.  
  12.  
  13. In a previous article, mab22@po.CWRU.Edu (Michael A. Balfour) says:
  14.  
  15. >static unsigned short int nativeIntTest=0x0001;
  16. >static char *nativeIntTest2=(char *)&nativeIntTest;
  17. >#define NativeByteOrder() ((nativeIntTest2[0]==0x00) ? LITTLE_ENDIAN : BIG_ENDIAN)
  18.                                                 ^^^^-- should be 0x01
  19.  
  20. I just thought I'd correct the typo so that we can focus on alternate
  21. implementations as opposed to my mistakes.  :)  
  22.  
  23. Mike Balfour
  24. -- 
  25. ----------------------------------+--------------------------------
  26. Mike Balfour, Partner             | BS/MS Graduate - ECMP
  27. Overload Engineering              | Case Western Reserve University
  28. "New Ideas for a Brighter Future" | Cleveland, OH
  29.